package com.example.forum.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created with IntelliJ IDEA
 * Description
 * User: 王杰
 * Date: 2025-06-10
 * Time: 15:09
 */
// 表示返回的结果是数据
@RestController
// 定义一级映射路径
@RequestMapping("/test")
public class TestController {
    @RequestMapping("/hello")
    public String hello() {
        return "hello, Spring boot...";
    }
}
